package com.cn.pack.controller;

import com.cn.pakc.api.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/user")
public class UserController {

    @Reference
    private UserService userService;

    @RequestMapping(path = "/say")
    public String say() {
        String user = userService.queryUser();
        System.out.println("user = " + user);
        return user;
    }
}
